import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';

/**
 * Generated class for the TestPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */
@Component({
  selector: 'page-test',
  templateUrl: 'test.html',
})
export class TestPage {

  constructor(public navCtrl: NavController, public navParams: NavParams) {
  }

  //沟崽子们
  ionViewDidLoad(){
    console.log('触发ionViewDidLoad');
  }

  ionViewWillEnter(){
    console.log('触发ionViewWillEnter');
  }
  //加载完成
  ionViewDidEnter(){
    console.log('触发ionViewDidEnter');
  }

  ionViewWillLeave(){
    console.log('触发ionViewWillLeave');
  }

  ionViewDidLeave(){
    console.log('触发ionViewDidLeave');
  }

  ionViewWillUnload(){
    console.log('触发ionViewWillUnload');
  }

}
